import request from "@/utils/request";
// 调用权限
export default {
  getList(data) {
    return request({
      url: "/api/accounts/button/",
      method: "get",
      params: data
    });
  },
  addButtons(data) {
    return request({
      url: "/api/accounts/button/",
      method: "post",
      data
    });
  },
  deleteButtons(id) {
    return request({
      url: "/api/accounts/button/" + id + "/",
      method: "delete"
    });
  },
  editButtons(id, data) {
    return request({
      url: "/api/accounts/button/" + id + "/",
      method: "put",
      data
    });
  }
};
